﻿/*CREATE TRIGGER [dbo].[BonificacionesAutorizaciones_DeletionTrigger] 
    ON [BonificacionesAutorizaciones] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[BonificacionesAutorizaciones_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[AutorizacionGuid] = [BonificacionesAutorizaciones_Tombstone].[AutorizacionGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[BonificacionesAutorizaciones_Tombstone] 
    ([AutorizacionGuid], DeletionDate)
    SELECT [AutorizacionGuid], GETUTCDATE()
    FROM deleted 
END*/